package com.lam.common.components.easyexcel.export;

import java.io.OutputStream;
import java.util.List;

import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.write.handler.WriteHandler;
import com.alibaba.excel.write.metadata.WriteSheet;

public interface DataWriter<T> {
	
	List<WriteHandler> getWriteHandler();
	
	ExcelWriter createExcel(String filePath, Class<T> clazz);
	
	ExcelWriter createExcel(OutputStream out, Class<T> clazz);
	
	WriteSheet createSheet(String sheetName, int fileNo);
	
	void writeData(ExcelWriter excelWriter, WriteSheet writeSheet, List<T> data);

	

}
